package com.example.inter.tourdemo.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.inter.tourdemo.R;
import com.example.inter.tourdemo.bean.MeBean;

import java.util.ArrayList;

/**
 * 我的 九宫格 适配器
 * @author zhaoyu
 * @date 2017/2/12.
 */

public class MeAdapterGrid extends BaseQuickAdapter<MeBean, BaseViewHolder> {

    public MeAdapterGrid(int layoutResId, ArrayList data) {
        super(layoutResId, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, MeBean bean) {
        helper.setImageResource(R.id.iv_grid_icon,bean.functionIcon);
        helper.setText(R.id.tv_grid_name,bean.functionName);
    }
}
